package com.mvc.security.model;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;

import com.mvc.framework.model.CompositeKeyAuditableEntity;

@Entity(name="F_ROLE_MENU")
@IdClass(RoleMenuPK.class)
public class RoleMenu  extends CompositeKeyAuditableEntity {
	@Id
	private Integer roleId;
	@Id
	private Integer menuId;
	
	public Integer getRoleId() {
    	return roleId;
    }
	public void setRoleId(Integer roleId) {
    	this.roleId = roleId;
    }
	public Integer getMenuId() {
    	return menuId;
    }
	public void setMenuId(Integer menuId) {
    	this.menuId = menuId;
    }
}

class RoleMenuPK implements Serializable {
	private Integer roleId;
	private Integer menuId;
	public Integer getRoleId() {
    	return roleId;
    }
	public void setRoleId(Integer roleId) {
    	this.roleId = roleId;
    }
	public Integer getMenuId() {
    	return menuId;
    }
	public void setMenuId(Integer menuId) {
    	this.menuId = menuId;
    }
}